package com.framework.validated.pojo;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

@Data
public class UserRole {

    @NotNull(message = "用户id，不能为NULL")
    private Integer userId;

    @NotNull(message = "必须赋予一个用户角色id")
    private Integer roleId;

    @NotBlank(message = "必须赋予一个用户角色")
    private String roleName;
}
